/*
 * Powered By [fdlm]
 * Web Site: http://www.fdlm.cn
 * Since 2014 - 2015
 */

package com.sjyy.doctorevaluate.model;

import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import cn.org.rapid_framework.util.DateConvertUtils;

import java.util.*;

import com.sjyy.doctorevaluate.model.*;
import com.sjyy.doctorevaluate.service.*;
import com.sjyy.doctorevaluate.vo.query.*;

import javacommon.base.*;
import javacommon.util.*;
import javacommon.page.Page;

/**
 * @author cty email:caotianye@fdlm.cn
 * @version 1.0
 * @since 1.0
 */


public class DoctorEvaluate extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "DoctorEvaluate";
	public static final String ALIAS_DOCTOR_EVALUATE_ID = "doctorEvaluateId";
	public static final String ALIAS_DOCTOR_ID = "doctorId";
	public static final String ALIAS_ORDER_NUMBER = "orderNumber";
	public static final String ALIAS_DOCTOR_LEVEL_NUMBER = "doctorLevelNumber";
	public static final String ALIAS_SERVICE_ATTITUDE_NUMBER = "serviceAttitudeNumber";
	public static final String ALIAS_VERY_SATISFACTION_NUMBER = "verySatisfactionNumber";
	public static final String ALIAS_SATISFACTION_NUMBER = "satisfactionNumber";
	public static final String ALIAS_NOT_SATISFACTION_NUMBER = "notSatisfactionNumber";
	public static final String ALIAS_REFUSE_NUMBER = "refuseNumber";
	
	//date formats
	
	//columns START
    /** doctorEvaluateId       db_column: doctor_evaluate_id */	
	
	private java.lang.Integer doctorEvaluateId;
    /** doctorId       db_column: doctor_id */	
	@NotNull 
	private java.lang.Integer doctorId;
    /** orderNumber       db_column: order_number */	
	
	private java.lang.Integer orderNumber;
    /** doctorLevelNumber       db_column: doctor_level_number */	
	
	private java.lang.Integer doctorLevelNumber;
    /** serviceAttitudeNumber       db_column: service_attitude_number */	
	
	private java.lang.Integer serviceAttitudeNumber;
    /** verySatisfactionNumber       db_column: very_satisfaction_number */	
	
	private java.lang.Integer verySatisfactionNumber;
    /** satisfactionNumber       db_column: satisfaction_number */	
	
	private java.lang.Integer satisfactionNumber;
    /** notSatisfactionNumber       db_column: not_satisfaction_number */	
	
	private java.lang.Integer notSatisfactionNumber;
    /** refuseNumber       db_column: refuse_number */	
	
	private java.lang.Integer refuseNumber;
	//columns END

	public DoctorEvaluate(){
	}

	public DoctorEvaluate(
		java.lang.Integer doctorEvaluateId
	){
		this.doctorEvaluateId = doctorEvaluateId;
	}

	public void setDoctorEvaluateId(java.lang.Integer value) {
		this.doctorEvaluateId = value;
	}
	
	public java.lang.Integer getDoctorEvaluateId() {
		return this.doctorEvaluateId;
	}
	public void setDoctorId(java.lang.Integer value) {
		this.doctorId = value;
	}
	
	public java.lang.Integer getDoctorId() {
		return this.doctorId;
	}
	public void setOrderNumber(java.lang.Integer value) {
		this.orderNumber = value;
	}
	
	public java.lang.Integer getOrderNumber() {
		return this.orderNumber;
	}
	public void setDoctorLevelNumber(java.lang.Integer value) {
		this.doctorLevelNumber = value;
	}
	
	public java.lang.Integer getDoctorLevelNumber() {
		return this.doctorLevelNumber;
	}
	public void setServiceAttitudeNumber(java.lang.Integer value) {
		this.serviceAttitudeNumber = value;
	}
	
	public java.lang.Integer getServiceAttitudeNumber() {
		return this.serviceAttitudeNumber;
	}
	public void setVerySatisfactionNumber(java.lang.Integer value) {
		this.verySatisfactionNumber = value;
	}
	
	public java.lang.Integer getVerySatisfactionNumber() {
		return this.verySatisfactionNumber;
	}
	public void setSatisfactionNumber(java.lang.Integer value) {
		this.satisfactionNumber = value;
	}
	
	public java.lang.Integer getSatisfactionNumber() {
		return this.satisfactionNumber;
	}
	public void setNotSatisfactionNumber(java.lang.Integer value) {
		this.notSatisfactionNumber = value;
	}
	
	public java.lang.Integer getNotSatisfactionNumber() {
		return this.notSatisfactionNumber;
	}
	public void setRefuseNumber(java.lang.Integer value) {
		this.refuseNumber = value;
	}
	
	public java.lang.Integer getRefuseNumber() {
		return this.refuseNumber;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("DoctorEvaluateId",getDoctorEvaluateId())
			.append("DoctorId",getDoctorId())
			.append("OrderNumber",getOrderNumber())
			.append("DoctorLevelNumber",getDoctorLevelNumber())
			.append("ServiceAttitudeNumber",getServiceAttitudeNumber())
			.append("VerySatisfactionNumber",getVerySatisfactionNumber())
			.append("SatisfactionNumber",getSatisfactionNumber())
			.append("NotSatisfactionNumber",getNotSatisfactionNumber())
			.append("RefuseNumber",getRefuseNumber())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getDoctorEvaluateId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof DoctorEvaluate == false) return false;
		if(this == obj) return true;
		DoctorEvaluate other = (DoctorEvaluate)obj;
		return new EqualsBuilder()
			.append(getDoctorEvaluateId(),other.getDoctorEvaluateId())
			.isEquals();
	}
}

